{% extends '__pagure__/master.html' %}

{#
SPDX-FileCopyrightText:  2020-2021 zPlus <zplus@peers.community>
SPDX-License-Identifier: GPL-2.0-only
#}

{# This template overrides Pagure's master.html by adding a "Federation" button
 # to the navigation bar.
 # __pagure__ is a symlink to the Pagure templates folder. The link is created
 # during plugin initialization. It exists because we cannot use
 # {% extends 'master.html' %}, we need to use a different name for the parent
 # file otherwise we enter an infinite recursion.
 #}

# Add items to the menu bar
{% block masthead_navbar_items %}

    # Only if logged in
    {% if g.fas_user %}
        <li class="nav-item ml-3">
            <a class="nav-link font-weight-bold" href="/federation">
                Federation
            </a>
        </li>
    {% endif %}

{% endblock %}
